<el-main>
    <!--   基本信息   -->
    <el-row>
        <span>基本信息</span>
    </el-row>
    <el-row :gutter="10" type="flex">
        <el-form ref="form" :model="form" :rules="rules" label-width="140px">

            <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
                <el-form-item label="所属区域" prop="GWGA003">
                    <el-input v-model="form.GWGA003_NAME" readOnly>
                        <i class="el-icon-search el-input__icon" @click="openGwga003" slot="suffix"></i>
                    </el-input>
                </el-form-item>
            </el-col>
            <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
                <el-form-item label="创建人" prop="GWGAORIU">
                    <el-input v-model="form.GWGAORIU_NAME" disabled="true">

                    </el-input>
                </el-form-item>
            </el-col>
            <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
                <el-form-item label="所属组织" prop="GWGAORIG">
                    <el-input v-model="form.GWGAORIG_NAME" disabled="true">

                    </el-input>
                </el-form-item>
            </el-col>
            <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
                <el-form-item label="公告时间" prop="GWGA004">
                    <el-date-picker
                            v-model="form.GWGA004"
                            type="date"
                            value-format="yyyy-MM-dd"
                            style="width:100%;">
                    </el-date-picker>
                </el-form-item>
            </el-col>
            <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
                <el-form-item label="公告获取结束时间" prop="GWGA005">
                    <el-date-picker
                            v-model="form.GWGA005"
                            type="date"
                            value-format="yyyy-MM-dd"
                            style="width:100%;">
                    </el-date-picker>
                </el-form-item>
            </el-col>
            <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
                <el-form-item label="开标时间" prop="GWGA006">
                    <el-date-picker
                            v-model="form.GWGA006"
                            type="date"
                            value-format="yyyy-MM-dd"
                            style="width:100%;">
                    </el-date-picker>
                </el-form-item>
            </el-col>
            <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
                <el-form-item label="招标编号" prop="GWGA001">
                    <el-input v-model="form.GWGA001" :disabled="!isAdd">

                    </el-input>
                </el-form-item>
            </el-col>
            <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
                <el-form-item label="项目名称" prop="GWGA002">
                    <el-input v-model="form.GWGA002">

                    </el-input>
                </el-form-item>
            </el-col>
            <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
                <el-form-item label="招标代办公司" prop="GWGA007">
                    <el-input v-model="form.GWGA007">

                    </el-input>
                </el-form-item>
            </el-col>
            <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
                <el-form-item label="客户" prop="GWGA008">
                    <el-input v-model="form.GWGA008_NAME" readOnly>
                        <i class="el-icon-search el-input__icon" @click="openGwga008" slot="suffix"></i>
                    </el-input>
                </el-form-item>
            </el-col>
            <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
                <el-form-item label="组织形式" prop="GWAK009">
                    <el-select v-model="form.GWAK009" disabled>
                        <el-option v-for="item in selectOptions.gwak009Options"
                                   :label="item.value"
                                   :value="item.code"></el-option>
                    </el-select>
                </el-form-item>
            </el-col>

            <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
                <el-form-item label="总预算（万元）" prop="GWGA013_TOTAL">
                    <el-input v-model="form.GWGA013_TOTAL" disabled>

                    </el-input>
                </el-form-item>
            </el-col>
<!--            <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">-->
<!--                <el-form-item label="产品大类" prop="GWGA009">-->
<!--                    <el-input v-model="form.GWGA009_NAME">-->
<!--                        <i class="el-icon-search el-input__icon" @click="openGwga009" slot="suffix"></i>-->
<!--                    </el-input>-->
<!--                </el-form-item>-->
<!--            </el-col>-->
<!--            <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">-->
<!--                <el-form-item label="车型类别" prop="GWGA010">-->
<!--                    <el-input v-model="form.GWGA010_NAME">-->
<!--                        <i class="el-icon-search el-input__icon" @click="openGwga010" slot="suffix"></i>-->
<!--                    </el-input>-->
<!--                </el-form-item>-->
<!--            </el-col>-->
<!--            <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">-->
<!--                <el-form-item label="吨位" prop="GWGA011">-->
<!--                    <el-input type="number" min="0" v-model.number="form.GWGA011">-->

<!--                    </el-input>-->
<!--                </el-form-item>-->
<!--            </el-col>-->
<!--            <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">-->
<!--                <el-form-item label="数量" prop="GWGA012">-->
<!--                    <el-input type="number" min="0" v-model.number="form.GWGA012">-->

<!--                    </el-input>-->
<!--                </el-form-item>-->
<!--            </el-col>-->
<!--            <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">-->
<!--                <el-form-item label="预算(万元)" prop="GWGA013">-->
<!--                    <el-input type="number" min="0" v-model.number="form.GWGA013">-->

<!--                    </el-input>-->
<!--                </el-form-item>-->
<!--            </el-col>-->
            <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
                <el-form-item label="是否参与" prop="GWGA014">
                    <el-select v-model="form.GWGA014" >
                        <el-option v-for="item in selectOptions.sys_n_y"
                                   :label="item.value"
                                   :value="item.code"></el-option>
                    </el-select>
                </el-form-item>
            </el-col>
            <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
                <el-form-item label="未参与原因" prop="GWGA015">
                    <el-select v-model="form.GWGA015" :disabled="GWGA015_diabled">
                        <el-option v-for="item in selectOptions.gwga015Options"
                                   :label="item.value"
                                   :value="item.code"></el-option>
                    </el-select>
                </el-form-item>
            </el-col>

            <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
                <el-form-item label="备注" prop="GWGA016">
                    <el-input type="textarea" v-model="form.GWGA016">

                    </el-input>
                </el-form-item>
            </el-col>
        </el-form>
    </el-row>

    <!--   招标产品信息   -->
    <el-row style="margin-bottom:20px">
        <span>招标产品信息</span>
    </el-row>
    <el-row>
        <div class="pos-ab" style="margin-bottom: 10px;">
            <el-button type="primary" size="small"
                       @click="addGwgaTableData">添加
            </el-button>
            <el-button type="primary" size="small"
                       @click="delGwgaTableData">删除
            </el-button>
        </div>
        <div class="pos-re">
            <div class="table-responsive">
                <table id="gwgi001_edit_gwgaTable"
                       class="layui-table"
                       lay-size="sm"
                       lay-filter="gwgi001_edit_gwgaTable">
                </table>
            </div>
        </div>
    </el-row>

    <!--   中标信息   -->
    <el-row style="margin:20px 0">
        <span>中标信息</span>
    </el-row>
    <el-row>
        <div class="pos-ab" style="margin-bottom: 10px;">
            <el-button type="primary" size="small"
                       @click="addTableData">添加
            </el-button>
            <el-button type="primary" size="small"
                       @click="delTableData">删除
            </el-button>
        </div>
        <div class="pos-re">
            <div class="table-responsive">
                <table id="gwgi001_edit_table"
                       class="layui-table"
                       lay-size="sm"
                       lay-filter="gwgi001_edit_table">
                </table>
            </div>
        </div>
    </el-row>
    <el-row>
        <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" style="text-align: right;margin-top: 10px;">
            <el-button icon="icon iconfont icon-23" size="mini" @click="cancle">关闭</el-button>
            <el-button type="warning" icon="icon iconfont icon-21" size="mini"
                       v-show="!detailReadOnly" @click="saveData">保存
            </el-button>
        </el-col>
    </el-row>
</el-main>


<script>
    require(["pc/crm/gwgi001_edit"], $.noop);
</script>
